import java.util.*;
public class choice337 {
    public static void main(String[] args) {
        Random rand = new Random();
        int x = rand.nextInt( 33 ) + 1 ;
        int count=0;
        int[] a = new int[7];
        
        while( count<7){
            int m = 0;
            x = rand.nextInt(32)+1;
            for(int i = 0; i<a.length;i++){
                if(x == a[i]){
                    m=1;
                    break;
                }
            }
            if(m == 0){
                a[count] =x;
                count++;
            }
        }
        System.out.print("7个随机数为：");
		
		for(int i = 0; i < a.length; i++){
			System.out.print(a[i] + " ");
		}
        
        
    }
    
}